package cn.edu.neusoft.wuguangsheng.flowerimpression.model;

import cn.edu.neusoft.wuguangsheng.flowerimpression.bean.AskBean;
import cn.edu.neusoft.wuguangsheng.flowerimpression.iface.GetAskInfoByIdIface;
import cn.edu.neusoft.wuguangsheng.flowerimpression.listener.TListener;
import cn.edu.neusoft.wuguangsheng.flowerimpression.service.AllService;
import retrofit2.Call;
import retrofit2.Retrofit;

public class GetAskInfoByIdModel extends RetrofitBaseModel implements GetAskInfoByIdIface<AskBean> {
    private AllService allService;
    private Retrofit retrofit;
    public GetAskInfoByIdModel(){
        retrofit=getRetrofit();
        allService=getAllService();
    }
    @Override
    public void getAskInfoById(String askid, TListener<AskBean> tListener) {
        Call<AskBean> call = allService.getAskInfoById(askid);
        callenqueue(call,tListener);
    }
}
